package com.shangxian.giveithome.service;


import com.shangxian.giveithome.entity.PageableDetails;
import com.shangxian.giveithome.entity.community.Collections;
import com.shangxian.giveithome.entity.community.CollectionsList;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public interface CollectionService {

    /**
     * 查询我的合集在 发布文章时异步请求
     * @param pageable
     * @param request
     * @return
     */
//    PageableDetails findMyCollections(Pageable pageable,HttpServletRequest request );

    /***
     * 查询我的合集信息，在我的版面中
     * @param pageable
     * @param request
     * @return
     */
    PageableDetails findCollectionsList(Pageable pageable,HttpServletRequest request,Long id);


//    PageableDetails findAttentionUserCollectionsList(Pageable pageable, Long id);
    /**
     * 查询用户合集列表的详情列表
     * @param pageable
     * @param id
     * @return
     */
    PageableDetails findUserCollectionsListDetails(Pageable pageable, Long id);

    /**
     * 添加合集
     */
    void addCollection(Collections collections, HttpServletRequest request);

    /**
     * 根据宠物id添加领养合集
     */
    CollectionsList addAdoptCollection(Long id, HttpServletRequest request);
}
